/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

/**
 * This class acts as data transfer abstraction for email. It encapsulates address attributes.
 * This object is transferred back and forth amongst various layers.
 * @author tejinder
 * @see  DTO
 */
public class Email {

    private String from = "";
    private String[] to = {};
    private String emailMsgTxt = "";
    private String emailSubjectTxt = "";
    private Integer orderId;

    /**
     * gets email from attribute
     * @return the from
     */
    public String getFrom() {
        return from;
    }

    /**
     * sets email from attribute
     * @param from the from to set
     */
    public void setFrom(String from) {
        this.from = from;
    }

    /**
     * gets the body of email message
     * @return the emailMsgTxt
     */
    public String getEmailMsgTxt() {
        return emailMsgTxt;
    }

    /**
     * sets the body of email message
     * @param emailMsgTxt the emailMsgTxt to set
     */
    public void setEmailMsgTxt(String emailMsgTxt) {
        this.emailMsgTxt = emailMsgTxt;
    }

    /**
     * gets email subject
     * @return the emailSubjectTxt
     */
    public String getEmailSubjectTxt() {
        return emailSubjectTxt;
    }

    /**
     * sets email subject
     * @param emailSubjectTxt the emailSubjectTxt to set
     */
    public void setEmailSubjectTxt(String emailSubjectTxt) {
        this.emailSubjectTxt = emailSubjectTxt;
    }

    /**
     * gets email to attribute
     * @return the to
     */
    public String[] getTo() {
        return to;
    }

    /**
     * sets email to attribute
     * @param to the to to set
     */
    public void setTo(String[] to) {
        this.to = to;
    }

    /**
     * gets order id
     * @return the orderId
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * sets order id
     * @param orderId the orderId to set
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
}
